package mes.operator.dao;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;

import mes.operator.dto.ComponentDTO;
import mes.operator.dto.EmployeeDTO;
import mes.operator.dto.MachineDTO;
import mes.operator.dto.HistoryDTO;
import mes.operator.dto.ProductDTO;

public interface OperatorDAO{
	
	public EmployeeDTO login(EmployeeDTO dto) throws SQLException;
	public void machineRun()throws SQLException;
	public HashMap machineState(String machineName)throws SQLException;
	public ArrayList<ComponentDTO> getComponentInfo(String component_name, int cnt) throws SQLException;
	public void insertComponent(ComponentDTO cdto) throws SQLException;
	public ArrayList<ComponentDTO> getComponentCount(String component_name) throws SQLException;
	public void updateComponentInfo(ComponentDTO cdto) throws SQLException;
	public void insertMachineA(HashMap map) throws SQLException;
	public void updateMachineEndtime(HashMap map) throws SQLException;
	public void insertMachineB(HashMap map) throws SQLException;
	public void insertMachineC(HashMap map) throws SQLException;
	public void insertComponentNum(String component_name) throws SQLException;
	public void insertHistory(HashMap map) throws SQLException;
	public ArrayList<HistoryDTO> getHistoryInfo() throws SQLException;
	public ArrayList<MachineDTO> selectAllMachineByName(String machineName) throws SQLException;
	public ArrayList<MachineDTO> getIsFaultMachineByName(String string) throws SQLException;
}
